import state from "./state"

export default{
    setPlayList(state,val=null){
        state.playList = val
    },
    setIsPlayed(state,val=false){
        state.isPlayed = val
    },
    setPlayIndex(state,id){
        state.playIndex=id;
    },
    setLogin(state,val=false){
        state.isLogin=val;
    },
    setloginDialogVisible(state,val=false){
        state.loginDialogVisible=val
    },
    setuserInfo(state,val=null){
        state.userInfo=val
    }
}